'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	const { code } = event
	let res = await uniCloud.httpclient.request(`https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=${code}`,{
			dataType: 'json',
			method: 'POST'
		})
	//返回数据给客户端
	return res
};
